package net.youyi.crazycopyer.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import net.youyi.crazycopyer.R;
import net.youyi.crazycopyer.adapters.DiscussAdapter;

/**
 * Created by xzp on 15/11/9.
 */
public class DiscussFragment extends BaseFragment{
    private RecyclerView mRecycler;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mRootView=inflater.inflate(R.layout.fragment_discuss,container,false);
        mRecycler= (RecyclerView) mRootView;
        mRecycler.setLayoutManager(new LinearLayoutManager(inflater.getContext()));
        mRecycler.setAdapter(new DiscussAdapter(inflater.getContext()));
        return mRootView;
    }

}
